
<section class="dux-layout-page">
    <div class="am-g am-g-collapse">
        <div class="am-u-md-8 am-u-sm-centered">
            <form class="am-form dux-form" action="{url()}" method="post"  data-dux="form-bind">
                <input type="hidden" name="open_id" value="{$loginInfo.open_id}">
                <input type="hidden" name="type" value="{$loginInfo.type}">
                <input type="hidden" name="bind" value="{$bind}">
                <!--if{$bind}-->
                <div class="am-input-group">
                    <span class="am-input-group-label"><i class="am-icon-user am-icon-fw"></i></span>
                    <input type="text" class="am-form-field" placeholder="{$nameTip}" name="username">
                </div>
                <div class="am-input-group">
                    <span class="am-input-group-label"><i class="am-icon-lock am-icon-fw"></i></span>
                    <input type="password" class="am-form-field" placeholder="登录密码" name="password">
                </div>
                <br>
                <button class="am-btn am-btn-danger am-btn-block" type="submit">绑定账号</button>
                <br>
                <div class="am-g">
                    <div class="am-u-sm-6 am-text-left">
                        <a href="{url('member/Register/forgot')}"><i class="am-icon-lock"></i> 找回密码</a>
                    </div>
                    <div class="am-u-sm-6 am-text-right">
                        <a href="{url('', array_merge($urlParams, ['bind' => 0]))}"><i class="am-icon-mobile"></i> 注册绑定</a>
                    </div>
                </div>
                <!--{else}-->

                    <div class="am-input-group">
                        <span class="am-input-group-label"><i class="am-icon-user am-icon-fw"></i></span>
                        <input type="text" class="am-form-field" name="username" id="username" placeholder="{$nameTip}">
                    </div>
                    <!--if{$userConfig.verify_status}-->
                    <div class="am-input-group">
                        <span class="am-input-group-label"><i class="am-icon-image am-icon-fw"></i></span>
                        <input type="text" class="am-form-field" placeholder="图片验证码" name="imgcode" id="imgcode">
                        <span class="am-input-group-label">
                                    <img src="{url('member/register/code')}" onclick="this.src ='{url(" member/register/code")}?'+Math.random()">
                        </span>
                    </div>
                    <div class="am-input-group">
                        <span class="am-input-group-label"><i class="am-icon-mobile am-icon-fw"></i></span>
                        <input type="text" class="am-form-field" placeholder="请输入验证码" name="code">
                        <span class="am-input-group-label">
                            <button href="javascript:;" class="am-btn am-btn-sm am-btn-danger" data-dux="page-getCode"
                                    data-url="{url('member/Register/getCode')}" data-field="username,imgcode" type="button">获取验证码</button>
                        </span>
                    </div>
                    <!--{/if}-->
                    <div class="am-input-group">
                        <span class="am-input-group-label"><i class="am-icon-lock am-icon-fw"></i></span>
                        <input type="password" class="am-form-field" name="password" placeholder="请输入登录密码">
                    </div>
                    <div class="am-input-group">
                        <span class="am-input-group-label"><i class="am-icon-lock am-icon-fw"></i></span>
                        <input type="password" class="am-form-field" name="password2" placeholder="再次输入登录密码">
                    </div>
                    {$hookHtml}
                    <br>
                    <label class="am-radio-inline am-padding-left-0">
                        <input type="checkbox" name="agreement" checked>
                        我已认真阅读并同意该<a href="{url('member/Register/agreement')}" class="am-text-danger">《用户协议》</a>
                    </label>
                    <div class="dux-br"> </div>
                    <div class="dux-padding">
                        <button class="am-btn am-btn-danger am-btn-block">立即注册</button>
                    </div>
                    <br>
                    已经注册? <a href="{url('', array_merge($urlParams, ['bind' => 1]))}" class="am-text-danger">立即绑定</a>
                <!--{/if}-->

            </form>
        </div>
    </div>

</section>